var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var ObjectId = Schema.ObjectId;

var PostSchema = new Schema({
    uid:{
      type:ObjectId
    },

    contentText:{
        type:String,
        require:true
    }

})

PostSchema.index({id:1});

mongoose.model('Posts',PostSchema);